package cn.lili.modules.promotion.entity.dos;

import cn.lili.modules.goods.entity.dos.Goods;
import cn.lili.mybatis.model.BaseStandardEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
* 购买方案表
* @TableName li_box_option
*/
@EqualsAndHashCode(callSuper = true)
@TableName(value ="li_box_option")
@Data
public class BoxOption extends BaseStandardEntity implements Serializable {

    /**
    * 方案名:字典option_name
    */
    @ApiModelProperty("方案名:字典option")
    private Integer optionType;
    /**
    * 方案状态,1启用，2禁用
    */
    @ApiModelProperty("方案状态,1启用，2禁用")
    private Integer optionStatus;
    /**
    * 必中商品id: 逗号分隔
    */
    @ApiModelProperty("必中商品id")
    private String biZhongGoodsId;
    /**
     * 关联盲盒
     */
    private String mhGoodsId;

    @TableField(exist = false)
    private String optionName;

    /**
     * 必中商品信息
     */
    @TableField(exist = false)
    private List<Goods> goodsList;

    /**
     * 购买方案价格
     */
    @TableField(exist = false)
    private BigDecimal optionPrice;

    /**
     * 购买总价 不计算优惠价格
     */
    @TableField(exist = false)
    private BigDecimal optionOriginalPrice;
    /**
     * 是否活动
     */
    @TableField(exist = false)
    private Integer isActivity = 0;
}
